package com.plant.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UgcUploadImages entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ugc_upload_images", catalog = "mr_plants")
public class UgcUploadImages implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private Integer fromContentType;
	private Integer fromContentId;
	private String url;
	private Timestamp createTime;
	private String ip;

	// Constructors

	/** default constructor */
	public UgcUploadImages() {
	}

	/** full constructor */
	public UgcUploadImages(Integer userId, Integer fromContentType,
			Integer fromContentId, String url, Timestamp createTime, String ip) {
		this.userId = userId;
		this.fromContentType = fromContentType;
		this.fromContentId = fromContentId;
		this.url = url;
		this.createTime = createTime;
		this.ip = ip;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "from_content_type")
	public Integer getFromContentType() {
		return this.fromContentType;
	}

	public void setFromContentType(Integer fromContentType) {
		this.fromContentType = fromContentType;
	}

	@Column(name = "from_content_id")
	public Integer getFromContentId() {
		return this.fromContentId;
	}

	public void setFromContentId(Integer fromContentId) {
		this.fromContentId = fromContentId;
	}

	@Column(name = "url", length = 65535)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "ip", length = 15)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

}